package test;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

public class SplitLog {
	public static void main(String[] args) throws Exception {
		test();
	}

	private static void test() throws Exception {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				new FileInputStream("/home/tarena/0DMS/data")));
		PrintWriter writer = new PrintWriter(new OutputStreamWriter(
				new FileOutputStream("/home/tarena/0DMS/data1")));
		String line;
		String[] arr;
		while((line=reader.readLine())!=null){
			arr=line.split("\t");
			writer.println(arr[2].substring(0,10));
			writer.flush();
		}
		reader.close();
		writer.close();
	}
	
}
